<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page import="com.imooc.sm.global.TimeAppellation" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>头部</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <%
        //称呼
        String appellation = null;


        String HH = new SimpleDateFormat("HH").format(new Date());
        Integer h = Integer.valueOf(HH);

        //封装了判断时间范围的方法
        appellation =  TimeAppellation.backAppellation(h);
    %>
</head>

<body>
<div class="head clearfix">
    <div class="logo"><a href="#"><img src="images/HNLG_DETAIL2.png" alt="南洋学院"/></a></div>
    <div class="curr"><span><%=appellation%>，${USER.name}[ <a href="logout.do" target="_top">退出</a> ]</span></div>
</div>
</body>
</html>
